package cn.gzmli.dtt.common.utils;

/**
 * @author Created by songcai.jiang  on 2018/3/30.
 */
public class Constant {
    //全局静态token
    public static String Token = "";

    public static Integer SUCCESS = 1;
    public static Integer FAIL = 0;
    public static final String SUCCESS_Str = "1";
    public static final String FAIL_Str = "0";


    public static int ENABLE = 1;
    public static int DISABLE = 0;


    //季度年度标识
    public static final String YEAR_Str = "YEAR";
    public static final String QUARTERLY_Str = "QUARTERLY";

    //内部供应链
    public static final Integer INTERIOESYBERGY = 1;

    //角色定义
    public static class Role{
        //超级管理员
        public static final int ROLE_ADMIN=1;

        public static final int ROLE_SHORT=6;

    }

    public static class ComResultCode {
        public static final int SUCCESS = 1;
        public static final int FAIL = 0;
        //保存时重复
        public static final int Save_Repeat = 2;

    }

    public static class FlowNodeID {
        //开始
        public static final int ID_1_XunjianBegin = 1;
        //问题上报
        public static final int ID_2_ProblemReport = 2;
        //区长审核
        public static final int ID_3_QunzhangAudit = 3;
        //商家处理
        public static final int ID_4_StoreShopDetail = 4;
        //区长验收
        public static final int ID_11_ProjectDeptAudit = 11;
        //结束
        public static final int ID_6_End = 6;
    }

    public static class WorkFlow{

        //节点任务接收事件
        public static final int WORKFLOW_MESSAGE_EVENTTYPE_RECIVE = 0;
        //节点任务处理事件
        public static final int WORKFLOW_MESSAGE_EVENTTYPE_PROC = 1;
        //节点任务发送事件
        public static final int WORKFLOW_MESSAGE_EVENTTYPE_SEND = 2;


    }

    // 是否有问题
    public static class hasProblem {
        //有问题
        public static final int Have_Problem = 1;
        //无问题
        public static final int Not_Have_Problem = 2;
    }

    // 是否有问题
    public static class ReportTabCycle {
        //日报
        public static final int Day_Report_Tab = 1;
        //周报
        public static final int Week_Report_Tab = 2;
        //抽检
        public static final int Random_Report_Tab = 3;
    }

    //任务处理tStatus状态
    public static class tStatus {
        //未处理
        public static final int tStatus_0_Untreated = 0;
        //审核通过
        public static final int tStatus_1_Audit_Pass = 1;
        //审核失败
        public static final int tStatus_2_Audit_Fail = 2;
        //未审核已被转交
        public static final int tStatus_3_NotAudit_Forwarded = 3;
        //处理中
        public static final int tStatus_4_Processing = 4;
        //已处理
        public static final int tStatus_5_Processed = 5;

        //新建工单
        public static final int tStatus_10_new_report_problem = 10;
        //转交区长审核
        public static final int tStatus_11_quzhang_audit = 11;
        //区长审核通过
        public static final int tStatus_12_quzhang_audit_success = 12;
        //区长审核失败
        public static final int tStatus_13_quzhang_audit_fail = 13;
        //商家提交区长验收
        public static final int tStatus_14_shop_dealwith_form = 14;
        //区长验收成功
        public static final int tStatus_15_quzhang_check_success = 15;
        //区长验收失败
        public static final int tStatus_16_quzhang_check_fail = 16;
    }

    // 流程日志类型
    public static class LogType {
        //总量需求计划日志
        public static final int _1_TotalPlanFlowLog = 1;
        //月度需求计划日志
        public static final int _2_MonPlanFlowLog = 2;
        //材料入库纠错日志
        public static final int _3_PutInStorageFlowLog = 3;
        //材料项目部应急入库日志
        public static final int _4_YjPutInStorageFlowLog = 4;
        //材料出库纠错日志
        public static final int _5_OosFormFlowLog = 5;
        //采购计划日志
        public static final int _6_ProcPlanFlowLog = 6;
        //兄弟们,记得跟着往下走啊...

    }

    //读取name列
    public static final String READ_NAME = "0";

    //读取code列
    public static final String READ_CODE = "1";

    // 版本控制状态
    public static class VersionStatus {
        //未发布
        public static final int _1_NOT_PUBLISH = 1;
        //已发布
        public static final int _2_PUBLISHED = 2;
        //已删除
        public static final int _3_DELETE = 3;


    }


    // 机构类型
    public static class DepartmentType {
        //单位
        public static final Integer OrgType_1_COMPANY = 1;
        //区域中心
        public static final Integer OrgType_2_AREAR = 2;
        //服务区
        public static final Integer OrgType_3_SERVICE = 3;
        //商户
        public static final Integer OrgType_4_STORE = 4;

    }

    // 系统角色ID
    public static class SysRoleId{

        // 1超级管理员
        public static final String _1_ADMIN = "1";

        // 2监管员
        public static final String _2_SUPERVISOR = "2";


    }


    // 数据标识状态：
    public static class MarkStatus{

        // 1原始数据
        public static final int _1_ORIGINAL = 1;

        // 2新增数据
        public static final int _2_NEW = 2;

        // 3变更数据
        public static final int _3_EDIT = 3;
    }

    //工单状态
    public static class StoreFormStatus{
        // 初稿
        public static final int _1_NEW_ORDER = 1;
        // 待审核
        public static final int _2_WAIT_AUDIT = 2;
        // 待处理
        public static final int _3_WAIT_DEALWITH = 3;
        // 待验收
        public static final int _4_WAIT_CHECK = 4;
        // 已完成
        public static final int _5_COMPLETE = 5;
        // 删除
        public static final int _6_DELETE = 6;
        // 区长审核失败
        public static final int _7_QUZHANG_AUDIT_FAIL = 7;
        // 区长验收失败
        public static final int _8_QUZHANG_CHECK_FAIL = 8;
    }
}
